#ifndef     __MSP432_USART_C
#define     __MSP432_USART_C
#include <ti/devices/msp432p4xx/driverlib/driverlib.h>
#include "protocol.h"
void UART_printf(uint32_t baseAddress, const char *format,...);

void uart_init(uint32_t baudRate);



extern uint16_t Serial_Rx[];
extern uint16_t Serial_Tx[];



void UARTA0_Init(void);

void UARTA1_Init(void);

void UARTA2_Init(void);
void UART_Send_Hexnum(uint32_t baseAddress,uint16_t    num);
void    UART_Send_string(uint32_t baseAddress,char *str);
void        UART_Send_Hexarry(uint32_t  baseAddress,uint8_t    *arry,uint8_t lenth);

#endif




